package com.jidu.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jidu.common.annotation.Excel;
import com.jidu.common.core.domain.BaseEntity;

/**
 * 班级对象 sys_class
 * 
 * @author ruoyi
 * @date 2024-07-19
 */
@ApiModel(value = "SysClass",description = "班级对象")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("sys_class")
@Data
public class SysClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 班级名称 */
    @Excel(name = "班级名称")
    @ApiModelProperty(value = "班级名称")
    private String name;

    /** 开班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开班时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开班时间")
    private Date startTime;

    /** 结课时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结课时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结课时间")
    private Date endTime;

    /** 班级人数 */
    @Excel(name = "班级人数")
    @ApiModelProperty(value = "班级人数")
    private Integer number;

    /** 删除标志（0正常，1删除） */
    private String delFlag;

    /** 禁用标志（0正常，1禁用） */
    @Excel(name = "禁用标志", readConverterExp = "0=正常，1禁用")
    @ApiModelProperty(value = "禁用标志")
    private String state;

    /** 班主任id */
    @Excel(name = "班主任id")
    @ApiModelProperty(value = "班主任id")
    private Long teacherId;

    /** 班级状态（0空闲中，1使用中） */
    @Excel(name = "班级状态", readConverterExp = "0=空闲中，1使用中")
    @ApiModelProperty(value = "班级状态")
    private String status;

    /** 课程id */
    @Excel(name = "课程id")
    @ApiModelProperty(value = "课程id")
    private Long courseId;

    /** 门店id */
    @Excel(name = "门店id")
    @ApiModelProperty(value = "门店id")
    private Long orgId;

}
